<template>
  <div class="container" v-title :data-title="'后台管理'">
    <div>
      <el-header class="header" height="70px">
        <Header selected="Admin"/>
      </el-header>
      <div>
        <el-aside class="aside" width="200px">
          <NavMenu/>
        </el-aside>
        <el-main class="main">
          <router-view/>
        </el-main>
      </div>
    </div>
  </div>
</template>

<script>
import Header from "@/components/Header";
import NavMenu from "@/views/Admin/navMenu";

export default {
  name: "Admin",
  components: {NavMenu, Header}
}
</script>

<style scoped>
.container {
  flex: 1;
  flex-basis: auto;
  box-sizing: border-box;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  background-color: #fff;
  overflow-x: hidden;
  min-width: 1640px;
}
.header {
  background: #409eff;
}
.aside {
  position: fixed;
  width: 200px;
  z-index: 110;
}
.main {
  position: relative;
  left: 200px;
  width: calc(100% - 200px);
}
.nav-tags {
  z-index: 110;
  position: sticky;
  top: 0;
}
</style>